using System;
using System.Collections.Generic;
using System.Text;

namespace Accountability4net
{
    /// <summary>
    /// 
    /// </summary>
    public class BaseAction : IAction
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="type"></param>
        /// <param name="account"></param>
        /// <param name="amount"></param>
        public BaseAction(ActionType type, IAccount account, decimal amount)
        {
            Type = type;
            Account = account;
            Amount = amount;
        }

        #region IAction Members

        private decimal amount_;
        /// <summary>
        /// 
        /// </summary>
        public decimal Amount
        {
            get
            {
                return amount_;
            }
            set
            {
                amount_ = value;
            }
        }

        private ActionType type_;
        /// <summary>
        /// 
        /// </summary>
        public ActionType Type
        {
            get
            {
                return type_;
            }
            set
            {
                type_ = value;
            }
        }

        private IAccount account_;
        /// <summary>
        /// 
        /// </summary>
        public IAccount Account
        {
            get
            {
                return account_;
            }
            set
            {
                account_ = value;
            }
        }

        #endregion
    }
}
